package com.dingreading.cloud.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 叮叮线下培训课程表-课程浏览记录
 */
@Data
@Table("course_train_log")
public class CourseTrainLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    private String addStaffUid;

    private String addStaffName;

    /**
     * 公司uid
     */
    private String corpUid;

    /**
     * 门店uid
     */
    private String storeUid;

    /**
     * 员工uid
     */
    private String staffUid;

    /**
     * 员工账号
     */
    private String username;

    /**
     * 记录类型 1.课程视频 2.课程pdf文件 3.作业
     */
    private Integer type;

    /**
     * 主分类uid
     */
    private String mainTypeUid;

    /**
     * 分类uid
     */
    private String typeUid;

    /**
     * 层级名称
     */
    private String levelName;

    /**
     * 课程uid
     */
    private String courseTrainUid;

    /**
     * 课程名称
     */
    private String courseTrainName;

    /**
     * 文件uid
     */
    private String fileUid;

    /**
     * 文件名称
     */
    private String fileName;

}
